<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<script type="text/javascript">
$("document").ready(function(){
	
	var params ={ID:'${param.ID}',edit:'${param.edit}',tempVal:'${param.tempVal}'};
	
	if(params.edit == 'false'){

		$("#fileUpload").remove();
		
	}else{

		$("#upload").uploadify({   
			
			script: basepath+"/${param.namespace}/upload",
        
			fileDataName : 'file', 
			
			scriptData:params,
			
			queueID: 'fileQueue',
			
			fileExt:"${param.fileExt}",
			
			fileDesc:"${param.fileExt}",
        
			onComplete:function(event, ID, fileObj, response, data){
			   
			   app.popWins["popWin"].close();
			   
			   if('${param.reloadType}'=="list"){
				   
				   app.module.reloadList();
				   
			   }
			   
 			   if('${param.reloadType}'=="item"){
				   
 					app.loadModule('${param.MODULE_NO}');
				   
			   }
			   
			}
		}); 
	}
});
</script>
<div style="height:100px;margin:10px;">
	<div id="fileUpload" style="width:300px;height:50px;">
		<div id="fileQueue" style="width:275px;height:50px;"></div>  
		<div style="text-align:right;padding-right:10px;">
			<input id="upload" name=file type="file" />
		</div>
	</div>
</div>